import React from "react";
import {Route, BrowserRouter as Router, Switch, Link} from 'react-router-dom';
import UserList from "../pages/sys/user/UserList";
import UserAdd from '../pages/sys/user/UserAdd';
import SideMenu from '../components/SideMenu';


export default function SubRouter(props) {
    return(
        <div>

                  {/*Link应修改为SideMenu组件 Sidemenu需要完善*/}
                    <SideMenu changeState={props.changeState}/>

                    <Link to={"userList"}>用户</Link><br/>
                    <Link to={"index"}>首页</Link>

                {/*<div>
                <Route path="/userList" component={UserList}/>
                <Route path="/userAdd" component={UserAdd}/>
                </div>*/}

        </div>
    );
}